#pragma once
#include<iostream>
#include"Plug.h"
using namespace std;

class Adapter :public USsocket, public CNsocket {
private:
	USsocket* usSocket;
	CNsocket* cnSocket;
public:
	Adapter(USsocket* socket) :usSocket(socket) {}
	Adapter(CNsocket* socket) :cnSocket(socket) {}
	string USinput()const override {
		return this->cnSocket->CNinput();
	}
	string USvol()const override {
		return this->cnSocket->CNvol();
	}
	string CNinput()const override {
		return this->usSocket->USinput();
	}
	string CNvol()const override {
		return this->usSocket->USvol();
	}
};